package com.yanqu.road.entity.monopolymarket.office;

/**
 * @Description
 * @Author cwq
 * @Data 2021/8/25 11:26
 */
public class MonopolyMarketOfficeSeatConfig {
    /**
     * 等级
     */
    public int level;
    /**
     * 起始位置 （包含）
     */
    public int startIndex;
    /**
     * 结束位置 （包含）
     */
    public int endIndex;


    public MonopolyMarketOfficeSeatConfig(int level, int startIndex, int endIndex) {
        this.level = level;
        this.startIndex = startIndex;
        this.endIndex = endIndex;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getStartIndex() {
        return startIndex;
    }

    public void setStartIndex(int startIndex) {
        this.startIndex = startIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public void setEndIndex(int endIndex) {
        this.endIndex = endIndex;
    }

    @Override
    public boolean equals(Object obj) {
        if(obj instanceof MonopolyMarketOfficeSeatConfig){
            return false;
        }
        MonopolyMarketOfficeSeatConfig tempObj = (MonopolyMarketOfficeSeatConfig)obj;
        if(this.level != tempObj.level){
            return false;
        }
        if(this.startIndex != tempObj.startIndex){
            return false;
        }
        if(this.endIndex != tempObj.endIndex){
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }
}
